# Copyright owners: Gentoo Foundation
#                   Arfrever Frehtes Taifersar Arahesis
# Distributed under the terms of the GNU General Public License v2

EAPI="5-progress"
PYTHON_ABI_TYPE="multiple"
PYTHON_DEPEND="<<[{*-cpython}xml]>>"
PYTHON_TESTS_FAILURES_TOLERANT_ABIS="3.1"
DISTUTILS_SRC_TEST="nosetests"

inherit distutils

DESCRIPTION="HTML parser based on the WHATWG HTML specification"
HOMEPAGE="https://github.com/html5lib/html5lib-python https://pypi.python.org/pypi/html5lib"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE="chardet genshi lxml"

DEPEND="$(python_abi_depend -i "2.6" dev-python/ordereddict)
	$(python_abi_depend dev-python/six)
	chardet? ( $(python_abi_depend dev-python/chardet) )
	genshi? ( $(python_abi_depend -e "*-jython" dev-python/genshi) )
	lxml? ( $(python_abi_depend -e "3.1 *-jython *-pypy" dev-python/lxml) )"
RDEPEND="${DEPEND}"

DOCS="CHANGES.rst README.rst"
